import { Input } from "@tarojs/components";
import React from "react";
import "./index.scss";

let SelfInput = Input;

if(IS_RN){
    SelfInput = require("react-native-gesture-handler").TextInput;
}



const  CommonTextInput = (props,ref)=>{
    return (
        <SelfInput className="input_gray" placeholder={props.placeholder} ref={ref} onFocus={props.onFocus} onChangeText={props.onChangeText} value={props.value} />
    );
};

export default React.forwardRef(CommonTextInput);